package com.kevin.j2eeToolBox.proxy;

import org.junit.BeforeClass;
import org.junit.Test;

public class AOPTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Test
	public void proxyTest() {
		JDKProxy factory = new JDKProxy();
		PersonService service = (PersonService) factory
				.createProxyIntance(new PersonServiceImp("xxx"));
		service.save("888");
	}

//	@Test
//	public void proxyTest2() {
//		CGlibProxyFactory factory = new CGlibProxyFactory();
//		PersonServiceBean service = (PersonServiceBean) factory
//				.createProxyIntance(new PersonServiceBean("xxx"));
//		service.save("999");
//	}
}
